﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RAP.Framework.Libary.DataSource
{
	/// <summary>
	/// 结果类型枚举
	/// </summary>
	public class DataResultTypes
	{
		/// <summary>
		/// 未指定，一般用于Sql中指定了Model类型
		/// </summary>
		public const string Model = "model";

		/// <summary>
		/// 键值对
		/// </summary>
		public const string Dictionary = "dictionary";

    /// <summary>
    /// 键值对
    /// </summary>
    public const string Map = "map";

		/// <summary>
		/// 受影响行数
		/// </summary>
		public const string AffectedRowCount = "affectedRowCount";

		/// <summary>
		/// 动态哈希表
		/// </summary>
		public const string DynamicDictionary = "dynamic";

		/// <summary>
		/// 简单table（columns、rows）
		/// </summary>
		public const string Table = "table";

		/// <summary>
		/// System.Data.DataTable
		/// </summary>
		public const string DataTable = "datatable";

		/// <summary>
		/// 结果集的第一条数据的第一列
		/// </summary>
		public const string Scalar = "scalar";

		/// <summary>
		/// JSON字符串
		/// </summary>
		public const string Json = "json";

    /// <summary>
    /// 将查询的结果集合按指定属性转换成键值对 object
    /// </summary>
    public const string KeyObject = "keyobject";
	}
}
